﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PopupQualification.aspx.cs" Inherits="MTRC.ODMS.Web.SOM.Popup.PopupQualification" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Qualification</title>
    <base target="_self" />
    <meta http-equiv="Expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <script type="text/javascript" src="../../Javascript/Menu/MainMenu.js"></script>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" /> 
    <script type="text/jscript">
        function PersonHoldQual(PersonHoldQualKye)
			{
			   dialogArguments.document.getElementById("hdnPersonHoldQualKye").value=PersonHoldQualKye;
			   dialogArguments.PersonSelectdQual_CallBackValue =true;
               window.close();
			}
		
		function Cancel_Click(){
		     dialogArguments.PersonSelectdQual_CallBackValue =false;
		    self.close();
		    return false;
		}
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table cellpadding="1" cellspacing="5">
        <tr valign="top">
            <td style="width:300px;height:250px;" valign="top">
                <fieldset style="clear:both; margin-bottom:1px;width:99%;height:99%; overflow: auto;">
                    <legend class="title2">
                    <asp:Label ID="lblAvailableQualifications" runat="server" Text="Available Qualifications"></asp:Label>
                    </legend>
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 93%; margin-left: 1px; height:93%;">
                        <tr>
                            <td align="center" valign="top" style="width:100%;height:100%;padding-top:6px;padding-bottom:6px;">
                                <asp:GridView ID="grvQualifications" runat="server" AutoGenerateColumns="False" Width="270px" OnRowDataBound="grvQualifications_RowDataBound" DataKeyNames="CDQualCode">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkCDQual" runat="server"  />
                                                <div style="display:none;"><asp:TextBox ID="txtCDQualCode" runat="server" Width="1px"></asp:TextBox></div>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField HeaderText="Qualification" DataField="QualCode" >
                                        </asp:BoundField>
                                        <asp:BoundField HeaderText="Description" DataField="QualDesc" />
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                 </fieldset>
            </td>
            <td style="width:50px;height:250px;vertical-align:middle;text-align:center;">
               <div style="text-align:center;width:100%;padding-left:4px;">
                   <asp:Button ID="btnAdd" runat="server" Text=">" Width="100%" OnClick="btnAdd_Click" /></div>
               <br />
               <div style="text-align:center;width:100%;padding-left:4px;">
                   <asp:Button ID="btnRemove" runat="server" Text="<" Width="100%" OnClick="btnRemove_Click" /></div>
            </td>
            <td style="width:300px;height:250px;" valign="top">
                <fieldset style="clear:both; margin-bottom:1px;width:99%;height:99%; overflow: auto;">
				    <legend class="title2">
				    <asp:Label ID="lblQualificationListOfStaff" runat="server" Text="Qualification List of Staff"></asp:Label></legend>
					    <table border="0" cellpadding="0" cellspacing="0" style="width: 93%; margin-left: 1px; height:93%;">
                        <tr>
                           <td align="center" valign="top" style="width:100%;height:100%;padding-top:6px;padding-bottom:6px;">
                                <asp:GridView ID="grvStaffQualifications" runat="server" AutoGenerateColumns="False" Width="270px" DataKeyNames="CDQualCode">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkHoldQual" runat="server" /><div style="display:none;"><asp:TextBox ID="txtHoldQual" runat="server" Width="1px"></asp:TextBox></div>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField HeaderText="Qualification" DataField="QualCode" >
                                        </asp:BoundField>
                                        <asp:BoundField HeaderText="Description" DataField="QualDesc" />
                                    </Columns>
                                </asp:GridView>                    
                            </td>
                        </tr>
                    </table>
				    </fieldset>	
            </td>
        </tr>
        <tr>
          <td></td>
        </tr>
        <tr>
            <td align="center" colspan="3" style="height: 26px"  valign="top">
                <asp:Button ID="btnOk" runat="server" Text="OK" Width="50px" OnClick="btnOk_Click" />
                <asp:Button ID="btnCancel" runat="server" OnClientClick="return Cancel_Click();" Text="Cancel" Width="50px" />
            </td>
        </tr>
    </table>
    </div>
    <input type="hidden" runat="server" id="hdnStationEventPersonID" />
    <input type="hidden" runat="server" id="hdnEventPersonTypeID" />
    <input type="hidden" runat="server" id="hdnSelectQualificationNumber" />
    <input type="hidden" runat="server" id="hdnPersonHoldQualKye" />
    
    </form>
</body>
</html>
